package com.example.superoa.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the entry database table.
 * 
 */
@Entity
@NamedQuery(name="Entry.findAll", query="SELECT e FROM Entry e")
public class Entry implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int entryid;

	private String entyensourrce;

	private String entystate;

	@Temporal(TemporalType.DATE)
	private Date entytime;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="staff_id")
	private Staff staff;

	public Entry() {
	}

	public int getEntryid() {
		return this.entryid;
	}

	public void setEntryid(int entryid) {
		this.entryid = entryid;
	}

	public String getEntyensourrce() {
		return this.entyensourrce;
	}

	public void setEntyensourrce(String entyensourrce) {
		this.entyensourrce = entyensourrce;
	}

	public String getEntystate() {
		return this.entystate;
	}

	public void setEntystate(String entystate) {
		this.entystate = entystate;
	}

	public Date getEntytime() {
		return this.entytime;
	}

	public void setEntytime(Date entytime) {
		this.entytime = entytime;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

}